Skip to content

Conversation

@nattsw
Copy link
Contributor

@nattsw nattsw commented Mar 13, 2025

This PR forks the existing DiscourseAi translator into a PostTranslator and TopicTranslator, with varying prompts to cater for the different content that can occur in post raw and topic titles.

We need to do this as titles tend to have a lot of text, and not have html or markdown, and the existing post content prompts are causing AI to pad the titles with html that does not exist.

This PR also improves the prompts for both types.

@nattsw nattsw force-pushed the ai-title-prompt branch 2 times, most recently from 6763762 to 4ee31b7 Compare March 13, 2025 12:15
@nattsw nattsw merged commit 627a099 into main Mar 14, 2025
6 checks passed
@nattsw nattsw deleted the ai-title-prompt branch March 14, 2025 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants